<template>
  <div class="about">
    <div class="header">
      <div class="cont-center" v-html="xieyi">
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        xieyi:''
      }
    },
    created() {
      this.getxieyi()
    },
    
    mounted(){
      
    },
    methods: {
      // 协议
      getxieyi(){
        this.$get("api/gzh_index.php?action=user_protocol", {

        }).then(res => { 
          this.xieyi = res.data.protocol
          this.$nextTick(()=>{
            let imgs=document.querySelectorAll('img');
            for(let i=0;i<imgs.length;i++){
              let img_src=imgs[i].getAttribute('src');
              if(img_src.indexOf('http://')==-1 && img_src.indexOf('https://')==-1){
                  imgs[i].setAttribute('src','http://www.tjyyjkfwpt.com/'+img_src);
                  imgs[i].setAttribute('width','100%');
                  imgs[i].setAttribute('height','');
              }
            }
          });
        }).catch(err => {

        });
      },
      
    },
  }
</script>

<style scoped>
  .about{
    width: 100%;
  }
  /* 头部 */
  .header{
    width:100%;
    padding: 100px 30px;
    box-sizing: border-box;
    background:rgba(255,255,255,1);
    border-top: 1px solid #EFEFEF;
    font-size:30px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(51,51,51,1);
    display: flex;
    align-items: center;
  }


</style>
